package mapper;

import org.springframework.stereotype.Repository;
import pojo.Song;


//只用继承BaseMapper即可
@Repository
public interface SongMapper extends BaseMapper<Song> {

    //其他代码忽略......
}


//BaseMapper部分定义
public interface BaseMapper<T> extends Mapper<T> {
    //其他代码省略...
    int insert(T entity);
}

